home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 27.zip
/
BS1 part 27
/
RefokickV1.4.adf
/
Relokick.DOC
next >
Wrap
Text File
|
1978-12-13
|
6KB
|
142 lines
-* Relokick v1.4 - (C) 1993 Galahad of Dual Crew *-
-----------------------------------------------------
Relokick instructions/CACHE controller source code
--------------------------------------------------
Hello ALL fellow Amiga owners. Why another version of Relokick I hear you
ask, when the first version did a pretty good job?? Well simply this. The
original version did not have the ability to disable CPU CACHES!!
And yes, this new version now supports the MC68020 processor CPU CACHE.
Why bother?
-----------
Despite how good the first version was, there were plenty of application and
game software that still refused to work because the CPU CACHE was left on.
The most common problem with games software was bad programming of loaders.
Many game loaders were simply running to fast and thus could never get the
file/track it needed. So for this reason, I have built in a CPU CACHE
controller.
Extra functions
---------------
While the Kickstart screen is being displayed, the mouse buttons will perform
the following functions.
Left Mouse button - Disable CPU CACHES (Signified by copper flash)
Right Mouse button - NTSC Switch (Only for owners of ECS equipped machines!)
I put the NTSC switch in simply because it is easy to implement and that
because of Kickstart 3's Boot Control menu giving you the very same function.
It seemed prudent that I put that option in. Unfortunately, I could not put
a toggle in there (i.e. Pressing the Right Mouse button would switch between
PAL/NTSC) simply because there was not enough room. In fact the coders of
Amigaland out there will even see that the code I used is plasterd all over
the Kickstart!! (It was that cramped, so much so, I nearly thought I could
not get it in there!!! - Oooer!!)
Obviously, if you dont't want to disable the CPU CACHES, then don't press the
left mouse button.
Special thanks must goto Taste/Binary Emotions for discovering how to turn
the bloody CACHES off in the first place. Cheers dude!
For those that are coders amoung you, here is the source to turn off the CPU
CACHES:
start:
lea routine(pc),a0 ; locate start of program into a0
move.l a0,$80 ; for relocatable purposes
trap #0 ; Call the trap!
rts ; Return
routine:
dc.w $4e7a,$0002 ; MOVEC CACR,d0
bclr #0,d0 ; Bitclear d0
dc.w $4e7b,$0002 ; MOVEC d0,CACR
rte ; Return exception!
The reason why there are dc.w statements instead of MOVEC statements is
simple...... the basic 68000 processor does not have these instructions, they
are exclusive to the 68020 and above!! So by using the dc.w statements, you
can still code the routine on a basic A500 etc.
You MUST go into supervisor mode to actually switch off the CPU CACHES, hence
the use of a trap. Incidentally, to turn the CPU CACHES back on, simply
replace the bclr with a bset instruction.
For those that don't know, the CACR register is called the CACHE CONTROL
REGISTER! (Simplicity!).
Please note. Allthough you can assemble this routine on a basic A500 or any
Amiga that has less than a 68020, if you attempt to run the assembled
routines, the Amiga will crash, simply cos you are trying to execute commands
that the Amiga does not understand. So, before you all go out releasing your
own versions of CACHE switchers, remember to put code in there to check what
type of CPU is present, otherwise there are gonna be a lot of moaning people
I think!!
Regards
-------
Regards goto the following friends, dudes and people that deserve a greet:
Red Devil, Skol, Ice, Black Cat, Xanadu, Taste, Hydlide, Parodius, Pazza,
Shagratt, Torch, mUB, DATA, Echo, Deadbeat, Steve, John (Tom Sheply),
Dreadnought, Mr. 'lamey' Brownstone, Clairvoyant ( I will come and see ya! ),
Everyone in Lsd, Everyone in Scoopex, Everyone in Anthrox, Everyone in Dual
Crew, Everyone in Ministry UK Division (N.O.M.A.D - Sorry for not crediting
you when I borrowed your loader for BC KID!), CU AMIGA (For actually having
the bottle to release the first version in the first place, I'm sure that
it breaks every copyright rule in the book, but Commodore seem to be turning
a blind eye.... We hope!!), Kelly Sumner - Commodore UK (Keep up the good
work, and hey, don't let that DSP be too long before we see it!!), Gremlin
Graphics + Electronic Arts + Ocean Software Ltd. (For supporting the A1200
NOW, you have my respect) and....... Commodore Amiga Inc. and everyone who
has played a part in getting the machine where it is today.
But the biggest greet goes to ANYONE who has supported the Amiga and who has
purchased an A1200/A4000 Amiga. We can all help in ensuring the Amiga's
future, 60,000 people so far 17/3/93 have helped make that a reality. For
all those that are thinking about getting one, don't think, just buy the
bloody thing...... YOU WILL NOT REGRET IT!!
But my biggest regard goes to Atari, its nice to see that you still act the
way you always have.... BLIND!! Get some new PR people, get some new
marketing people, and then, and only then will the Falcon succeed, until
then, why not rename it the DODO..... It just seems more apt!!!
End note
--------
This program is free to copy, there are no restrictions on who copies it. PD
Libraries are not to charge any more than their normal charge for disks (i.e.
don't go charging any more for it, just cos its a bit more special than most
other stuff!!). If I see ANY PD libraries charging an extortionate amount
for this program, I will NEVER update this program again!!
Please leave this doc on this disk, DO NOT REMOVE IT!!
Catch you later Bill & Ted..... Galahad/Dual Crew 1993
Commodore Amiga is a trademark of Commodore Business Machines.
Falcon is a trademark of Atari, but could Atari afford to trademark the
Falcon???
Joke
----
Q. What does every Atari ST and Atari Falcon owner want to be when they
GROW up?
A. An Amiga owner!!!
Dual Crew
There are always two points of view........